Obtaining the Status of a Capture Window

The following example uses the SetWindowPos4557_V1 function to set the size of the capture window to the overall dimensions of the incoming video stream based on information returned by the capGetStatus1FLYWR macro in the CAPSTATUSY2GWY1 structure.

CAPSTATUS CapStatus;

 

capGetStatus(hWndC, &CapStatus, sizeof (CAPSTATUS));

 

SetWindowPos(hWndC, NULL, 0, 0, CapStatus.uiImageWidth,

    CapStatus.uiImageHeight, SWP_NOZORDER | SWP_NOMOVE);